package com.twu.biblioteca;

import com.twu.biblioteca.controller.BibliotecaController;
import com.twu.biblioteca.model.*;
import com.twu.biblioteca.model.menu.Menu;
import com.twu.biblioteca.view.UI;
import com.twu.biblioteca.view.consoleUI.ConsoleUI;

public class BibliotecaApp {

    public static void main(String[] args) {
        Library library = new Library();
        library.getInventory().add(new Book("Test", "Author", "2014"));
        library.getInventory().add(new Book("Test", "Author", "2014"));
        library.getInventory().add(new Book("Test", "Author", "2014"));

        library.getInventory().add(new Movie("Test Title", "Director Person", "2010", 10));
        ContactInformation contactInfo = new ContactInformation("test@test.com", "13 Friday Street", "071234567123");
        library.getCustomers().add(new Customer("123-4567", "password1", "John Doe", contactInfo));

        Menu menu = new Menu(library);
        UI consoleUI = new ConsoleUI(menu, System.in, System.out);
        BibliotecaController controller = new BibliotecaController(menu, consoleUI);
        controller.start();
    }
}
